Skip to content

Feature-gate undo module behind input-components#113

Merged
ryanoneill merged 1 commit intomainfrom
fix/undo-feature-gate
Mar 2, 2026
Merged

Feature-gate undo module behind input-components#113
ryanoneill merged 1 commit intomainfrom
fix/undo-feature-gate

Conversation

@ryanoneill
Copy link
Owner

Summary

  • Gate pub(crate) mod undo with #[cfg(feature = "input-components")] in src/lib.rs
  • The undo module is only used by InputField and TextArea (both behind input-components), but was always compiled, producing dead-code warnings under --no-default-features

Verification

  • cargo check --no-default-features produces zero warnings
  • cargo check --all-features produces zero warnings
  • All undo-related tests pass

Test plan

  • cargo check --no-default-features — zero warnings
  • cargo test --all-features -- undo — all 67 tests pass

🤖 Generated with Claude Code

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.64%. Comparing base (e096986) to head (8f3fb78).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #113   +/-   ##
=======================================
  Coverage   92.64%   92.64%           
=======================================
  Files         100      100           
  Lines        9545     9545           
=======================================
  Hits         8843     8843           
  Misses        702      702           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The undo module is only used by InputField and TextArea (both behind
the input-components feature), but was always compiled. This produced
dead-code warnings under --no-default-features. Gate the module
declaration with #[cfg(feature = "input-components")] to eliminate
those warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ryanoneill ryanoneill force-pushed the fix/undo-feature-gate branch from 9a3de2c to 8f3fb78 Compare March 2, 2026 16:44
@ryanoneill ryanoneill merged commit 3a62ac0 into main Mar 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants